=Documentation=
This is the main glossary entry.

Here is its synopsis:
<pre>
{{Glossary/Entry
 |lang=         *mandatory* The language(s) of this entry (mainly for non-english ones).
 |title=        *mandatory* The title of the entry.
 |ref=          *mandatory* The link-reference of the entry.
 |sort=         *optional, not used* The sort-reference of the entry, if void will use its lowercased-“ref”.
 |dict=         *optional* Zero or more {{Glossary/Entry/Dict}} templates.
 |shortdesc=    *mandatory* A short description, that will be included in infobox of the links (via DPL).
 |longdesc=     *optional* More details, if needed.
 }}
</pre>

Notes:
*The “ref” parameter should NEVER contain special chars (like “é”, “ß”, “-” and so on), only ASCII alpha-numeric signs. For all special cases, only use the “#” sign as first char.

For example, 
<pre>
{{Glossary/Entry
 |lang=FR
 |title=Intelligence Artificielle (IA)
 |ref=intelligence artificielle
 |dict={{Glossary/Entry/Dict|lang=FR|term=intelligence artificielle}} {{Glossary/Entry/Dict|lang=EN|term=''artificial intelligence''}}
 |shortdesc=Programme informatique développé pour simuler des éléments de l’intelligence humaine, comme le raisonnement, l’apprentissage, la résolution de problème, et la prise de décisions.
 |longdesc=Les programmes d’intelligence artificielle permettent aux ordinateurs des choses comme jouer aux échecs, prouver des théorèmes mathématique, etc.
 }}
</pre>

…gives:
{{Glossary/Entry
 |lang=FR
 |title=Intelligence Artificielle (IA)
 |ref=intelligence artificielle
 |dict={{Glossary/Entry/Dict|lang=FR|term=intelligence artificielle}} {{Glossary/Entry/Dict|lang=EN|term=''artificial intelligence''}}
 |shortdesc=Programme informatique développé pour simuler des éléments de l’intelligence humaine, comme le raisonnement, l’apprentissage, la résolution de problème, et la prise de décisions.
 |longdesc=Les programmes d’intelligence artificielle permettent aux ordinateurs des choses comme jouer aux échecs, prouver des théorèmes mathématique, etc.
 }}

For more info on the Glossary system, see the [[Template:Glossary]] page.
{{clr}}

=How it works=
Roughly, this templates takes the given parameters and put them in form.

<pre>
<!--

// Creates the span wrapping all the entry (with its id reference!), and the hidden
// span containing the sorting key.

--><span class="glossary_entry" id="{{lc:{{{ref}}}}}"><!--
--><span class="glossary_entry_sort">{{lc:{{{sort|{{{ref}}}}}}}}</span><!--

// Now, the main structure (a “definition list”), with title
// (and its right-floating ref/lang infos),
// then shortdesc, and optional dict definitions, and longdesc description.

// Here I’d like to put directly the <dl><dt></dt><dd></dd></dl> xhtml code,
// but mediawiki seems to escape the “</dd>” and “</dl>” closing tags
// (and not the opening ones!!!!).
// Anyone knows how to output raw xhtml from a template?

-->
;<span class="glossary_entry_title"><!--
   --><span class="glossary_entry_title_util"><!--
      --><span class="glossary_disp_ref">(ref: {{lc:{{{ref}}}}})</span>&nbsp;—&nbsp;<!--
      --><span class="glossary_disp_lang">{{{lang}}}</span><!--
   --></span>{{{title}}}<!--
--></span>
:<span class="glossary_entry_shortdesc">{{{shortdesc}}}</span><!--
-->{{#if: {{{dict|}}}|:<span class="glossary_entry_dict">{{{dict}}}</span>|}}<!--
-->{{#if: {{{longdesc|}}}|:<span class="glossary_entry_longdesc">{{{longdesc}}}</span>|}}<!--

// Here, we must have a newline, or else the closing <br /></span> is inside the last
// <dd></dd> wiki-generated element (and this is not good!). But with this new-line,
// it is now inside a <p></p> wiki-generated element (argh!). Don’t know how to fix this
// (even though this does not seem to disturb Firefox…).

-->
<br /></span>
</pre>

